package com.aoxin.model.course;

import java.math.BigDecimal;
import java.util.Date;

import org.joda.time.DateTime;

public class SchoolCoursePage {
	/**
	 * key
	 */
	private String key;
	private Integer schoolCoursePageId;
	private String schoolId;
	private Integer coursePageId;

	private String name;

	private Integer type;

	private String description;

	private Integer validity;

	private Date salesStartDate;

	private Date salesEndDate;

	private Date effectiveStartDate;

	private Date effectiveEndDate;

	private Integer activeNumber;

	private Integer state;

	private Integer parentId;

	private Integer upDownState;

	private BigDecimal price;

	private BigDecimal discountPrice;

	private Date createDate;

	private Integer salesVolume;

	private Integer hotState;

	private Integer newState;

	private Integer sequence;
	
	private String salesStartDateString;
	
	private String salesEndDateString;
	
    private Long downCount;

    private Integer syClassroomNumber;
    private String briefIntroduction;
    
    private String schoolName;
    
    private String courseName;
    
    private String childrenName;
    
    private String endTime;
    private Integer flag;
    
    private String teachName;
    
	public String getTeachName() {
		return teachName;
	}

	public void setTeachName(String teachName) {
		this.teachName = teachName;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	//用于转换的实体属性
    private String userName;
    
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getChildrenName() {
		return childrenName;
	}

	public void setChildrenName(String childrenName) {
		this.childrenName = childrenName;
	}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	public String getBriefIntroduction() {
		return briefIntroduction;
	}

	public void setBriefIntroduction(String briefIntroduction) {
		this.briefIntroduction = briefIntroduction;
	}

	public Integer getSyClassroomNumber() {
		return syClassroomNumber;
	}

	public void setSyClassroomNumber(Integer syClassroomNumber) {
		this.syClassroomNumber = syClassroomNumber;
	}

	public Long getDownCount() {
	return downCount;
}

public void setDownCount(Long downCount) {
	this.downCount = downCount;
}


	//联表查询
	private Integer courseId;
	
	private String courseTime;
	
	private Integer classroomId;
	
	private String classroomName;
	
	private Integer id;
	
	private Integer classroomNumber;
	
	private String courseStartTime;
	
	
	public String getCourseStartTime() {
		return courseStartTime;
	}

	public void setCourseStartTime(String courseStartTime) {
		this.courseStartTime = courseStartTime;
	}

	public Integer getClassroomNumber() {
		return classroomNumber;
	}

	public void setClassroomNumber(Integer classroomNumber) {
		this.classroomNumber = classroomNumber;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCourseId() {
		return courseId;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	public String getCourseTime() {
		return courseTime;
	}

	public void setCourseTime(String courseTime) {
		this.courseTime = courseTime;
	}

	public Integer getClassroomId() {
		return classroomId;
	}

	public void setClassroomId(Integer classroomId) {
		this.classroomId = classroomId;
	}

	public String getClassroomName() {
		return classroomName;
	}

	public void setClassroomName(String classroomName) {
		this.classroomName = classroomName;
	}


	private String IsBuy;
	
	
	
	public String getIsBuy() {
		return IsBuy;
	}

	public void setIsBuy(String isBuy) {
		IsBuy = isBuy;
	}


	public String getSalesStartDateString() {
		return salesStartDateString;
	}

	public void setSalesStartDateString(String salesStartDateString) {
		this.salesStartDateString = salesStartDateString;
	}

	public String getSalesEndDateString() {
		return salesEndDateString;
	}

	public void setSalesEndDateString(String salesEndDateString) {
		this.salesEndDateString = salesEndDateString;
	}

	/**
	 * 封面图
	 */
	private String coverPicture;
	
	private Integer rank;
	
	private String ClassName;
	
	
	
	public String getClassName() {
		return ClassName;
	}

	public void setClassName(String className) {
		ClassName = className;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public String getCoverPicture() {
		return coverPicture;
	}

	public void setCoverPicture(String coverPicture) {
		this.coverPicture = coverPicture;
	}

	
	public Integer getSchoolCoursePageId() {
		return schoolCoursePageId;
	}

	public void setSchoolCoursePageId(Integer schoolCoursePageId) {
		this.schoolCoursePageId = schoolCoursePageId;
		this.key = String.valueOf(schoolCoursePageId);
	}

	public String getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(String schoolId) {
		this.schoolId = schoolId;
	}

	public Integer getCoursePageId() {
		return coursePageId;
	}

	public void setCoursePageId(Integer coursePageId) {
		this.coursePageId = coursePageId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getValidity() {
		return validity;
	}

	public void setValidity(Integer validity) {
		this.validity = validity;
	}

	public Date getSalesStartDate() {
		return salesStartDate;
	}

	public void setSalesStartDate(Date salesStartDate) {
		this.salesStartDateString=new DateTime(salesStartDate).toString("yyyy-MM-dd");
		this.salesStartDate = salesStartDate;
	}

	public Date getSalesEndDate() {
		return salesEndDate;
	}

	public void setSalesEndDate(Date salesEndDate) {
		this.salesEndDateString=new DateTime(salesEndDate).toString("yyyy-MM-dd");
		this.salesEndDate = salesEndDate;
	}

	public Date getEffectiveStartDate() {
		return effectiveStartDate;
	}

	public void setEffectiveStartDate(Date effectiveStartDate) {
		this.effectiveStartDate = effectiveStartDate;
	}

	public Date getEffectiveEndDate() {
		return effectiveEndDate;
	}

	public void setEffectiveEndDate(Date effectiveEndDate) {
		this.effectiveEndDate = effectiveEndDate;
	}

	public Integer getActiveNumber() {
		return activeNumber;
	}

	public void setActiveNumber(Integer activeNumber) {
		this.activeNumber = activeNumber;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getUpDownState() {
		return upDownState;
	}

	public void setUpDownState(Integer upDownState) {
		this.upDownState = upDownState;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getDiscountPrice() {
		return discountPrice;
	}

	public void setDiscountPrice(BigDecimal discountPrice) {
		this.discountPrice = discountPrice;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getSalesVolume() {
		return salesVolume;
	}

	public void setSalesVolume(Integer salesVolume) {
		this.salesVolume = salesVolume;
	}

	public Integer getHotState() {
		return hotState;
	}

	public void setHotState(Integer hotState) {
		this.hotState = hotState;
	}

	public Integer getNewState() {
		return newState;
	}

	public void setNewState(Integer newState) {
		this.newState = newState;
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	@Override
	public String toString() {
		return "SchoolCoursePage{" +
				"schoolCoursePageId=" + schoolCoursePageId +
				", schoolId='" + schoolId + '\'' +
				", coursePageId=" + coursePageId +
				", name='" + name + '\'' +
				", type=" + type +
				", description='" + description + '\'' +
				", validity=" + validity +
				", salesStartDate=" + salesStartDate +
				", salesEndDate=" + salesEndDate +
				", effectiveStartDate=" + effectiveStartDate +
				", effectiveEndDate=" + effectiveEndDate +
				", activeNumber=" + activeNumber +
				", state=" + state +
				", parentId=" + parentId +
				", upDownState=" + upDownState +
				", price=" + price +
				", discountPrice=" + discountPrice +
				", createDate=" + createDate +
				", salesVolume=" + salesVolume +
				", hotState=" + hotState +
				", newState=" + newState +
				", sequence=" + sequence +
				'}';
	}
}